﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.WindowsAzure.StorageClient;

namespace AzureTest
{
    public class TestDataModel : TableServiceEntity
    {
        // Default constructor lets Azure decide partition and row keys
        public TestDataModel()
        { }
        
        // partitionKey says what server it will be on (give same partitionKey to multiple items to ensure
        // they are stored on same machine) 
        //
        // rowKey is unique key used to locate data on the server
        public TestDataModel(string partitionKey, string rowKey)
            : base(partitionKey, rowKey)
        {
        }
        
        // fields that will be stored in the table
        public string Data { get; set; }
        public string Method { get; set; }
    }
}